//
//  MKUserInfoModel.swift
//  MOKOAnnounce
//
//  Created by 曹相召 on 2017/7/17.
//  Copyright © 2017年 cc.moko. All rights reserved.
//

import UIKit

class MKUserInfoResponse: MKBaseModel {
    var info:MKUserInfoModel = MKUserInfoModel()
    var resultcode:String?
    required init() {
        //        fatalError("init() has not been implemented")
    }
}
class MKUserInfoModel: MKBaseModel {
    var userid:Int?
    var nickname:String?
    var logourl:String?
    var area:String?
    var leavel:Int?
    var usertype:MKUserType?
    var email:Bool?
    var bindEmail:String?
    var mobile:Bool?
    var bindMobile:String?
    var username:String?
    var userphone:String?
    var userVocation:String?
    var userVocationid:Int?
    var userQrcode:String?
    var gender:String?
    var jobName:String?
    var pic:MKUserInfoPicModel?
    var address:MKUserInfoAddressModel?
    var mtbInfoBean:String?
    var webLogoKey:String?
    var mtb:Bool?
    var resultcode:String?
    var mbMjxBean:String?
    var authStatus:Int?
    var orgid:Int?
    var actCount:Int?
    var isKeep:Bool?
    var weixinType:Int?
    var accessInfoPublish:String?
    var synText:String?
    var weixincode:String?
    
//    init(dict: Dictionary<String, Any>) {
//         super.init()
//         print("dict --- \(dict)")
//         usertype = MKUserType(rawValue: dict["usertype"] as! Int)
//         userid = dict["userid"] as? Int
//         nickname = dict["nickname"] as? String
//         logourl = dict["logourl"] as? String
//         area = dict["area"] as? String
//         leavel = dict["leavel"] as? Int
//         email = dict["email"] as? Bool
//         bindEmail = dict["bindEmail"] as? String
//         mobile = dict["mobile"] as? Bool
//         bindMobile = dict["bindMobile"] as? String
//         username = dict["username"] as? String
//         userphone = dict["userphone"] as? String
//         userVocation = dict["userVocation"] as? String
//         userVocationid = dict["userVocationid"] as? Int
//         userQrcode = dict["userQrcode"] as? String
//         gender = dict["gender"] as? String
//         jobName = dict["jobName"] as? String
//         mtbInfoBean = dict["mtbInfoBean"] as? String
//         webLogoKey = dict["webLogoKey"] as? String
//         mtb = dict["mtb"] as? Bool
//         resultcode = dict["resultcode"] as? String
//         mbMjxBean = dict["mbMjxBean"] as? String
//         accessInfoPublish = dict["accessInfoPublish"] as? String
//         synText = dict["synText"] as? String
//         weixincode = dict["weixincode"] as? String
//         authStatus = dict["authStatus"] as? Int
//         orgid = dict["orgid"] as? Int
//         actCount = dict["actCount"] as? Int
//         weixinType = dict["weixinType"] as? Int
//         isKeep = dict["isKeep"] as? Bool
////        var pic:Dictionary<String, Any>?
////        var address:Dictionary<String, Any>?
//    }
    
    required init() {
//        fatalError("init() has not been implemented")
    }
}
class MKUserInfoPicModel: MKBaseModel{
    var thumb:String?
    var large:String?
//    init(dict: Dictionary<String, Any>) {
//        super.init()
//        print("dict --- \(dict)")
//        thumb = dict["thumb"] as? String
//        large = dict["large"] as? String
//    }
    
    required init() {
//        fatalError("init() has not been implemented")
    }
}
class MKUserInfoAddressModel: MKBaseModel{
    var countryId:Int?
    var provinceId:Int?
    var cityId:Int?
    var id:Int?
//    init(dict: Dictionary<String, Any>) {
//        super.init()
//        print("dict --- \(dict)")
//        countryId = dict["countryId"] as? Int
//        provinceId = dict["provinceId"] as? Int
//        cityId = dict["cityId"] as? Int
//        id = dict["id"] as? Int
//    }
    
    required init() {
//        fatalError("init() has not been implemented")
    }
}
